<!--<?php
print <<<EOT
-->

<html>
<head>
<title>$page_title</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT" />
<meta http-equiv="Pragma" content="no-cache" />
<meta name="author" content="Target Internet Development Corporation - http://www.target.ca" />
<meta name="charset" content="ISO-8859-1">
<meta name="copyright" content="This document copyright 2005 by Target Internet Development Corporation" />
<meta name="description" content="jans2en is a premier manufacturer of handcrafted fine period furniture reproductions. Twenty five years ago two friends with a love for the styles and quality of the old masters set out with a common goal: to manufacture beautiful furniture based on these traditional designs and methods for discriminating buyers." />
<meta name="keywords" content="Jansen, jans2en, janssen, furniture, elegance, fine furniture, imports" />
<meta name="title" content="jans2en furniture Inc. " />
<meta name="format" content="text/html">
<meta name="robots" content="index,follow">
<meta name="revisit-after" content="30 Days">
<meta name="last-modified" content="03-Nov-2004">
<script language="JavaScript" src="./js/check_form_functions.js" type="text/JavaScript"></script>
<script language="JavaScript" src="./js/date_functions.js" type="text/JavaScript"></script>
<script language="JavaScript" src="./js/image_functions.js" type="text/JavaScript"></script>
<script language="JavaScript" src="./js/regexp_functions.js" type="text/JavaScript"></script>
<script language="JavaScript" src="./js/window_functions.js" type="text/JavaScript"></script>
<script language="JavaScript" src="./css/home.js" type="text/JavaScript"></script>
<script>
<!--

function pt() {
    var element1 = document.getElementById("hidden1");
	element1.innerHTML = "";
	
	var element2 = document.getElementById("hidden2");
	element2.innerHTML = "";

	window.print();
}

//-->
</script>
<link rel="Shortcut Icon" href="/favicon.ico">
<link href="./css/jansenfurniture.css" rel="stylesheet" type="text/css">
</head>
<body onLoad="MM_preloadImages('./images/button/jf_button_add_to_cart-over.gif','./images/button/jf_button_print-over.gif','./images/button/jf_button_close_window-over.gif')">
<a name="top"></a>
<table width="100%" height="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top" align="center"><div><img name="" src="./images/spacer.gif" width="568" height="10" alt=""></div>
      <table width="568" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="./images/colour/jf_colour_navy_100.gif"><img name="" src="./images/spacer.gif" width="568" height="1" alt=""></td>
        </tr>
        <tr>
          <td bgcolor="FFFFFF" width="568" align="left" valign="top"><table width="568" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td background="./images/colour/jf_colour_navy_100.gif" width="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
                <td width="568" align="left" valign="top" background="./images/colour/jf_colour_navy_07.gif"><div><img name="" src="./images/spacer.gif" width="568" height="5" alt=""></div>
                  <table width="568" border="0" cellspacing="0" cellpadding="0">
                    <!--tr>
                      <td width="5"><img name="" src="./images/spacer.gif" width="5" height="5" alt=""></td>
                      <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="10" alt=""></td>
                      <td bgcolor="FFFFFF" width="538"><img name="" src="./images/spacer.gif" width="538" height="10" alt=""></td>
                      <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="10" alt=""></td>
                      <td width="1" align="left" valign="top" background="./images/colour/jf_colour_navy_15.gif"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                      <td width="4"><img name="" src="./images/spacer.gif" width="4" height="4" alt=""></td>
                    </tr-->
                    <tr>
                      <td width="5"><img name="" src="./images/spacer.gif" width="5" height="5" alt=""></td>
                      <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="10" alt=""></td>
                      <td bgcolor="FFFFFF" width="538" class="text"><div><img name="" src="./images/spacer.gif" width="538" height="10" alt=""></div>
                        
                        <div align="center">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                        <td align="left" width="22">
                        <td align="left" width="150" valign="top">
                        <img src="./images/nav/jf_nav_logo2.gif" alt="jans2en furniture" name="jf_nav_logo" width="100" height="140">
                        </td>
                        <td valign="top">
                           <div align="right" style="FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #0d2c4e; FONT-STYLE: normal;padding-right:20;">$print_title</div>
                           <span id='hidden1'><table width="94%" border="0" cellspacing="0" cellpadding="0>
                           <tr><td height=25 align="right">&nbsp;</td></tr>
                           <!--tr><td align="right" height="28"></td></tr-->
                           <tr><td align="right" height="28">Items $start - $end of $sql_all_num</td></tr>
                           <tr><td align="right">Page <select name=select_page onChange="location.href='printall.php?categoryid={$categoryid}&subcategoryid={$subcategoryid}&page='+this.value">{$select_page}</select></td></tr>
                           <tr><td height=30 align="right"><span style="font-size: 10px;">{$page_show['pagelink']}</span>&nbsp;</td></tr>
                           </table></span>
                        
                        
                        </td>
                        </tr>
                        </table></div>
                        <div><img name="" src="./images/spacer.gif" width="538" height="2" alt=""></div>
                        <table width="538" border="0" cellspacing="0" cellpadding="0">
                          
                          <tr>
                            <td height=1><hr style="border:solid #000000 1px;height:1px"  width=91% align="center"></td>
                          </tr>
                          
                        </table>
                        <!--div class="paragraphSpacer"><img name="" src="./images/spacer.gif" width="0" height="0" alt=""></div-->



						<table width="538" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            
                            
                            <td width="100%" align="left" valign="top">
                              
                
                <table border="0" cellspacing="0" cellpadding="0"><tr><td width="568" align="left" valign="top" style="BACKGROUND-COLOR: #f0e9d5" background="./images/colour/jf_colour_navy_07.gif">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr height=6>
                      
                      <td width="252"></td>
                      <td width="252"></td>

                      
                    </tr>
                    <tr>
                      

               
<!--
EOT;
$index = 1;
foreach ($out_ary as $k=>$v) {
    $str = '';
    if ($index%2 == 0 && $index>1) {
        $str       = '
                    </tr>
                    
                    <tr>
                      
                      <td align="left"><img name="" src="./images/spacer.gif" width="252" height="4" alt=""></td>
                      <td align="left"><img name="" src="./images/spacer.gif" width="252" height="4" alt=""></td>
                      
                      
                    </tr>
                    <tr>
                      ';
        
    } else {
        $str = '';    
    }
    
    $start_limit_1 = $start_limit+$index;
    if (trim($v['small_pic']) == "" || !file_exists("./attachments/" . $v['small_pic'])) {
        $v['small_pic'] = 'noCN.gif';
    }
    $price_show = '';
    if ($jansen_type==2) {
    	$v['price_2'] = number_format($v['price_2'], 2, '.', ',');
    	/*$price_show = '<div>MCP: ' . (float)$v['price_1'] . ' (??)</div>
	                   <div>DCP: ' . (float)$v['price_2'] . ' (??)</div>';*/
    	$price_show = '<div>?? : ' . $v['price_2'] . '</div>';
    } elseif ($jansen_type == 1) {
    	$v['price_3'] = number_format($v['price_3'], 2, '.', ',');
    	//$price_show = '<div>HKWSP: ' . (float)$v['price_3'] . ' (HKD)</div>';
    	$price_show = '<div>HKD : ' . $v['price_3'] . ' </div>';
    }
    
    if (trim($v['pic']) == "" || !file_exists("./attachments/" . $v['pic'])) {
        $v['pic'] = 'noCN.gif';
    }
print <<<EOT
-->    	

    	              <td align="center">
    	                <table width="126" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td bgcolor="FFFFFF" width="5"><img name="" src="./images/spacer.gif" width="5" height="10" alt=""></td>
                            <td bgcolor="FFFFFF" width="115"><img name="" src="./images/spacer.gif" width="115" height="10" alt=""></td>
                            <td bgcolor="FFFFFF" width="5"><img name="" src="./images/spacer.gif" width="5" height="10" alt=""></td>
                            <td width="1" align="left" valign="top" background="./images/colour/jf_colour_navy_15.gif"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                          </tr>
                          <tr>
                            <td bgcolor="FFFFFF" width="5"><img name="" src="./images/spacer.gif" width="5" height="10" alt=""></td>
                            <td bgcolor="FFFFFF" width="115"><div><!--a href="product_details.php?categoryid=$categoryid&pid={$v['id']}&fid=$fid"--><img src="./attachments/{$v['pic']}" alt="Image of {$v['id']}" name="jf_product_images_sm_image_{$v['id']}" width="215" height="215" class="picture" id="jf_product_images_sm_image_{$v['id']}" border="0"></div>
                              <!--div><img src="./images/spacer.gif" width="115" height="5" alt=""></div>
                              <div align="left">{$v['code']}</div>
                              <div><img src="./images/spacer.gif" width="115" height="5" alt=""></div-->
                              
                              <!--$price_show-->
                              
                              
                            </td>
                            <td bgcolor="FFFFFF" width="5"><img name="" src="./images/spacer.gif" width="5" height="10" alt=""></td>
                            <td width="1" align="left" valign="top" background="./images/colour/jf_colour_navy_15.gif"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                          </tr>
                          <tr>
                            <td bgcolor="FFFFFF" width="5"><img name="" src="./images/spacer.gif" width="5" height="10" alt=""></td>
                            <td bgcolor="FFFFFF" width="115"><img name="" src="./images/spacer.gif" width="115" height="10" alt=""></td>
                            <td bgcolor="FFFFFF" width="5"><img name="" src="./images/spacer.gif" width="5" height="10" alt=""></td>
                            <td width="1" align="left" valign="top" background="./images/colour/jf_colour_navy_15.gif"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                          </tr>
                          <tr>
                            <td width="5" align="left" valign="top" background="./images/colour/jf_colour_navy_15.gif"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                            <td background="./images/colour/jf_colour_navy_15.gif" width="115"><img name="" src="./images/spacer.gif" width="115" height="1" alt=""></td>
                            <td background="./images/colour/jf_colour_navy_15.gif" width="5"><img name="" src="./images/spacer.gif" width="5" height="1" alt=""></td>
                            <td width="1" align="left" valign="top" background="./images/colour/jf_colour_navy_15.gif"><img name="" src="./images/colour/jf_colour_navy_15.gif" width="1" height="1" alt=""></td>
                          </tr>
                        </table>
                      </td>
                      $str

<!--
EOT;
    $index++;
}
$str2 = '';
if ($index%2 == 0) {
    $str2 = '<td>&nbsp;</td></tr>
                    
                    <tr>
                      
                      <td align="left"><img name="" src="./images/spacer.gif" width="252" height="4" alt=""></td>
                      <td align="left"><img name="" src="./images/spacer.gif" width="252" height="4" alt=""></td>
                      
                      
                    </tr>
                    <tr>';    
}
print <<<EOT
-->                                                          
                      
                    $str2  
                    </tr>
                    
                   
                    </table></td></tr></table>
                               
                              
                              <div align="right" style="padding-right:20;">Page $page of $pages</div>
                              <!--div class="paragraphSpacer"><img name="" src="./images/spacer.gif" width="0" height="0" alt=""></div-->
                            </td>
                          </tr>
                          <!--tr>
                            <td align="right" valign="bottom"><div class="paragraphSpacer"><img name="" src="./images/spacer.gif" width="0" height="0" alt=""></div>
                              <div align="right"><img src="./images/colour/jf_colour_gold_100.gif" alt="Gold Accent" name="jf_colour_gold_100" width="10" height="10" id="jf_colour_gold_100"></div></td>
                          </tr-->
                        </table>

<!--
EOT;
?>-->